package com.tsunami.user.feign;

import com.tsunami.base.R;
import com.tsunami.user.feign.fallback.UserResolveApiFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author lx
 * @date 2021-11-02 17:06
 */
@FeignClient(value = "tsunami-auth-admin", fallback = UserResolveApiFallback.class,contextId="auth-user")
public interface UserResolveApi {
    /**
     * 根据id 查询用户详情
     *
     * @param id 用户ID
     * @return 用户的R格式化信息
     */
    @GetMapping(value = "/user/anno")
    R getUserById(@RequestParam(value = "id") Long id);
}
